package org.testis.serialportmodule.core;


/**
 *
 * @author nurhat
 */
public class NetworkSerialProvider implements SerialConnectionInterface
{

    private StringBuilder m_outputStringBuilder;
    private String m_networkIp;
    private int m_portNo;


    public NetworkSerialProvider(String networkIp,
                                 int portNo)
    {
        setPortNo(portNo);
        setNetworkIp(networkIp);
        m_outputStringBuilder = new StringBuilder();
    }


    public boolean startConnection() throws Exception
    {
        throw new UnsupportedOperationException("Not supported yet.");
    }


    public boolean endConnection() throws Exception
    {
        throw new UnsupportedOperationException("Not supported yet.");
    }


    public String sendCommand(String cmd) throws Exception
    {
        throw new UnsupportedOperationException("Not supported yet.");
    }


    

    public String getNetworkIp()
    {
        return m_networkIp;
    }


    public void setNetworkIp(String networkIp)
    {
        this.m_networkIp = networkIp;
    }


    public int getPortNo()
    {
        return m_portNo;
    }


    public void setPortNo(int portNo)
    {
        this.m_portNo = portNo;
    }

    public String getOutput()
    {
        return m_outputStringBuilder.toString();
    }
}
